package com.xiaoyy.app.extend.gateway.controller;

import com.xiaoyy.app.extend.common.vo.BusTravelUrlVO;
import com.xiaoyy.app.extend.integration.JhxBusTravelIntegration;
import com.xiaoyy.core.common.vo.AppResponse;
import com.xiaoyy.core.common.vo.BaseVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/busTravel")
@Api(tags = "公交出行")
public class JhxBusTravelController {
    @Autowired
    JhxBusTravelIntegration jhxBusTravelIntegration;

    @PostMapping(value = "/getUrl", produces = "application/json;charset=UTF-8")
    @ApiOperation(value = "公交出行-获取金华行公交码H5url", notes = "公交出行-获取金华行公交码H5url")
    public AppResponse<BusTravelUrlVO> getUrl(@RequestBody BaseVO vo) {
        return AppResponse.successData(jhxBusTravelIntegration.getUrl(vo));
    }

}
